package com20230218;

public class Flower {
    public static void main(String[] args) {
        flower();

    }
    public static void flower(){
        for (int i = 100; i < 1000; i++) {
            int b = i / 100;
            int s = i / 10 % 10;
            int g = i % 10;
            if (Math.pow(b,3) + Math.pow(s,3) + Math.pow(g,3) == i){
                System.out.println(i + "是水仙花水");
            }

        }
    }
}
